package com.sjgtw.cloud.system.api.service;

import com.sjgtw.cloud.common.core.constant.ServiceNameConstants;
import com.sjgtw.cloud.common.core.domain.R;
import com.sjgtw.cloud.system.api.fallbackfactory.RemoteConfigFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * <p>Title: 认证信息数据API</p>
 * <p>Description: </p>
 * @author Admin
 * @date 2021-4-7
 */
@FeignClient(contextId = "remoteConfigService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteConfigFallbackFactory.class)
public interface RemoteConfigService
{

	/**
	 * <p>Title: 根据参数键名查询参数值 </p>
	 * <p>Description:</p>
	 * @param configKey 参数键名
	 * @return
	 */
	@GetMapping(value = "/config/getConfigByKey/{configKey}")
	public R<String> getConfigByKey(@PathVariable("configKey") String configKey);

}
